package com.sxj.PDMS.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.sxj.PDMS.model.entity.ActivistApplicationInformationList;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sxj.PDMS.model.entity.DataInformationList;
import com.sxj.PDMS.model.entity.Student;
import com.sxj.PDMS.model.vo.ActivistApplicationInformationListVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.sql.Date;
import java.util.List;

/**
* @author 503c'j
* @description 针对表【activist_application_information_list(积极分子申请信息列表)】的数据库操作Mapper
* @createDate 2024-06-13 14:50:10
* @Entity com.sxj.PDMS.model.entity.ActivistApplicationInformationList
*/
public interface ActivistApplicationInformationListMapper extends BaseMapper<ActivistApplicationInformationList> {

    public Long selectTotal();

    /**
     * 查询所有数据,分页展示
     *
     * @param start
     * @param pageSize
     * @return
     */
    public List<ActivistApplicationInformationListVO> selectAll(@Param("start") Integer start, @Param("pageSize") Integer pageSize);

    public List<ActivistApplicationInformationListVO> selectByNumberOrName(@Param("start") Integer start,
                                                                         @Param("pageSize") Integer pageSize,
                                                                         @Param("studentNumber") String studentNumber,
                                                                         @Param("name") String name);
    public Long selectTotalByNumberOrName( @Param("studentNumber") String studentNumber,
                                           @Param("name") String name);

    List<ActivistApplicationInformationListVO> selectAllStudentAndDownload(@Param("studentNumber") String studentNumber,
                                                                           @Param("name") String name);
}




